package org.openstock.impl.def.core.ui.swing.wrapper;

import javax.swing.Action;

import org.openstock.impl.def.core.util.SwingUtil;
import org.openstock.resources.image.ImageIconLoader;

public class JMenu extends javax.swing.JMenu {
	private static final long serialVersionUID = -5609437172102237960L;
	
	private void init(){
		SwingUtil.initializeWidget(this);
	}
	
	public JMenu() {
		super();
		init();
	}

	public JMenu(Action a) {
		super(a);
		init();
	}

	public JMenu(String s, boolean b) {
		super(s, b);
		init();
	}

	public JMenu(String s) {
		super(s);
		init();
	}
	
	public JMenu(String name, int mnemonic, String iconPath){
		super(name);
		setMnemonic(mnemonic);
		setIcon(ImageIconLoader.loadImageIcon(iconPath));
	}

}
